package hw80001045.lesson1;

public class TestNum {
   public static void main (String [] args){
	   /*ϰ��һ����һ
       for(int i=1;i<=100;i++){
    	   System.out.print(i+" ");
       } */
      
	   /*������
	   int a=1;
       int sum=0;
       while(a>0){
    	   sum=sum+a;    	   
    	   if(a>100){
    		   break;
    	   }
    	   System.out.print(a+" ");
    	   a++;
       }*/
	   
	   /*������
	   int n=1;
	   do{
		   System.out.print(n+" ");
		   n++;
	   }while(n<=100); */
	   
    /*������
    dg(100);*/
	  
    //ϰ���
    for(int i=1;i<=100;i++){ 	   
  	  if(i==47)
  	  { 		
  	   		  return;//break;
  	  }  	
  	  System.out.print(i+" ");
     }
    
    
   } 
   
  public static void dg(int n){//���Ǹ������˳�
       if(n>0){
           dg(n-1);
           System.out.println(n);
       }  
  }
}
